﻿//-----------------------------------------------------------------------
// <copyright file="Bounds.cs" company="MKCoolsoft">
//     Copyright (c) mkcoolsoft. All rights reserved.
// </copyright>
// <author>Mario Kuhl</author>
// <revision>26.01.2014 Initial version</revision>
//-----------------------------------------------------------------------

namespace MKCoolsoft.GPXLib
{
    #region usings

    using System;
    using System.Collections.Generic;
    using System.Xml.Serialization;

    #endregion usings

    /// <summary>
    /// Two latitude/longitude pairs defining the extent of an element. 
    /// </summary>
    public class Bounds
    {
        #region private fields

        /// <summary>
        /// The minimum latitude.
        /// </summary>
        private decimal minlatField;

        /// <summary>
        /// The minimum longitude.
        /// </summary>
        private decimal minlonField;

        /// <summary>
        /// The maximum latitude.
        /// </summary>
        private decimal maxlatField;

        /// <summary>
        /// The maximum longitude.
        /// </summary>
        private decimal maxlonField;

        #endregion private fields

        #region public properties

        /// <summary>
        /// Gets or sets minimum latitude.
        /// </summary>
        [XmlAttributeAttribute]
        public decimal Minlat
        {
            get
            {
                return this.minlatField;
            }

            set
            {
                this.minlatField = value;
            }
        }

        /// <summary>
        /// Gets or sets minimum longitude.
        /// </summary>
        [XmlAttributeAttribute]
        public decimal Minlon
        {
            get
            {
                return this.minlonField;
            }

            set
            {
                this.minlonField = value;
            }
        }

        /// <summary>
        /// Gets or sets maximum latitude.
        /// </summary>
        [XmlAttributeAttribute]
        public decimal Maxlat
        {
            get
            {
                return this.maxlatField;
            }

            set
            {
                this.maxlatField = value;
            }
        }

        /// <summary>
        /// Gets or sets maximum longitude.
        /// </summary>
        [XmlAttributeAttribute]
        public decimal Maxlon
        {
            get
            {
                return this.maxlonField;
            }

            set
            {
                this.maxlonField = value;
            }
        }

        #endregion public properties
    }
}
